package com.example.day04.homework;

import java.util.ArrayList;
import java.util.Arrays;

public class Product {
        private  int pid;
        private  String pname;
        private  double price;
        private  String  production;

    public Product(int pid, String pname, double price, String production) {
        this.pid = pid;
        this.pname = pname;
        this.price = price;
        this.production = production;
    }

    public int getPid() {
        return pid;
    }

    public void setPid(int pid) {
        this.pid = pid;
    }

    public String getPname() {
        return pname;
    }

    public void setPname(String pname) {
        this.pname = pname;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getProduction() {
        return production;
    }

    public void setProduction(String production) {
        this.production = production;
    }


    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Product{");
        sb.append("pid=").append(pid);
        sb.append(", pname='").append(pname).append('\'');
        sb.append(", price=").append(price);
        sb.append(", production='").append(production).append('\'');
        sb.append('}');
        return sb.toString();
    }
}
